<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AlterVulsTable20171211 extends Migration
{
    /**
     * 修改vuls表字段
     *
     * @return void
     */
    public function up()
    {
        Schema::table('vuls', function (Blueprint $table) {
            $table->tinyInteger('is_reasonable')->default(0)->comment('判断等级是否合理,默认0,1：待评判,2：合理,3：不合理');
        });
    }

    /**
     * 回滚删除
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::table('vuls', function (Blueprint $table) {
            $table->dropColumn('is_reasonable');
        });
    }
}
